﻿using Jayden.Dll.Core;
using Jayden.Dll.Core.Persistence;
using Jayden.Dll.Core.Persistence.Data.SQLite;
using Jayden.Dll.Core.Persistence.Models;

namespace Jayden.Dll.Cards.Poker
{
	public class SQLiteTexasHoldemHandSummaryDataAccess : SQLiteDataAccess<TexasHoldemHandSummary>, TexasHoldemHandSummaryDataAccess
	{
		public SQLiteTexasHoldemHandSummaryDataAccess(Configuration config, UnitOfWork uow, Entity entity) : base(config, uow, entity) { }

		public TexasHoldemHandSummary Read(long handId)
		{
			ObjectId oid = new ObjectId(Entity.ObjectType, handId);
			return Read(oid);
		}
	}
}
